﻿// The panel tooltip is a tooltip that contains a panel
define([
    'Wjs/ui/widgets/Tooltip',
    'Wjs/ui/widgets/Panel'
],
function (View) {
    'use strict';

    return Wjs.defineOnce({

        type: 'PanelToolTip',

        internal: {

            base: Wjs.getType('Tooltip'),

            construct: function (cfg, parent) {

                this.getBase().constructor.call(this, cfg, parent);

                this.setChild({
                    child: cfg
                }, 'Panel');
            }
        }

    });
});